package cn.samler.diandi.api.entity;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class PostComment {
    @NotNull(message = "p_id must be not null")
    @Min(value = 1, message = "post id 有误")
    private Integer pId;

    private Integer uid;

    private String username;

    @NotNull(message = "is_reply must be not null")
    private Boolean isReply;

    private Integer replyUid;

    private String replyUsername;

    @NotBlank(message = "内容不能为空")
    private String content;

    private Date date;
}
